package com.ruoyi.h5.user.controller.pojo.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

/**
 * 三方账号授权登陆
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class LoginWithAuthCodeDTO {

    /**
     * 授权方式 wechat
     */
    @NotBlank(message = "授权方式不能为空")
    private String authMethod;

    /**
     * 授权码
     */
    @NotBlank(message = "授权码不能为空")
    private String authCode;
}
